<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <style>

    </style>
</head>
<body>
<form action="/pestSystem/pest.do?method=addPest" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">害虫名</label>
        <div class="layui-input-block">
            <input type="text" name="f_pestName" required  lay-verify="required" placeholder="请输入害虫名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿主</label>
        <div class="layui-input-block">
            <input type="text" name="f_host" required  lay-verify="required" placeholder="请输入害虫宿主" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">主要危害</label>
        <div class="layui-input-block">
            <textarea name="f_detriment" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" id="confirmBtn">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script>
    // //Demo
    // layui.use(['form','jquery'], function(){
    //     var form = layui.form;
    //     var $ =layui.$;
    //     //监听提交
    //     form.on('submit(formDemo)', function(data){
    //         layer.msg(JSON.stringify(data.field));
    //         return false;
    //     });
    //
    //
    // });
</script>
</html>